package org.micro.rbac.core.model;


import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONWriter;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author hongsir
 * @apiNote 摘要:所有实体的基类
 * 实现序列化接口,标准的json toString 格式,子路无需关注toString()
 * @date 2019-11-15 11:58
 */
public class BaseBean implements Serializable {
    @Serial
    private static final long serialVersionUID = 7628603410723216006L;

    @Override
    public String toString() {
        return JSON.toJSONString(this, JSONWriter.Feature.WriteMapNullValue);
    }

}
